package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "db_goodsentry")
@ApiModel(value = "入库单实体类")
public class GoodsEntry implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "入库单唯一编号")
    @TableId(value = "GoodsEntry_id",type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "入库单商品编号")
    @TableField(value = "GoodsEntry_Goods_id")
    private String goodsId;

    @ApiModelProperty(value = "入库单商品名称")
    @TableField(value = "GoodsEntry_Goods_name")
    private String goodsName;

    @ApiModelProperty(value = "入库单供应商")
    @TableField(value = "GoodsEntry_Supplier")
    private String supplier;

    @ApiModelProperty(value = "入库单总金额")
    @TableField(value = "GoodsEntry_money")
    private String  money;

    @ApiModelProperty(value = "入库单入库数量")
    @TableField(value = "GoodsEntry_amount")
    private String amount;

    @ApiModelProperty(value = "入库单创建时间")
    @TableField(value = "GoodsEntry_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;

    @ApiModelProperty(value = "入库单经手人联系电话")
    @TableField(value = "GoodsEntry_leader_tel")
    private String leaderTel;

    @ApiModelProperty(value = "入库单经手人名称")
    @TableField(value = "GoodsEntry_leader_name")
    private String leaderName;
}
